<?php
/**
 * Created by PhpStorm.
 * User: bill-h
 * Date: 2021/11/15
 * Time: 11:30
 * Email: 391878487@qq.com
 */

namespace app\index\controller;
use app\common\controller\IndexController;

class Login extends IndexController
{

     public function index(){

         return $this->fetch('./login');
     }

     public function already(){
         $admin['id']=11;
         $admin['expire_time'] = time() + 7200;
         session('index', $admin);
     }

    public function out(){

        session('index', null);
    }

}